    <!-- TRACK LOADER MSG -->
    <div id="track_loader"><div id="track_loader_c"></div></div>
    <!-- TRACK LOADER MSG -->
    
    { $html->open_table('','box') }
    <div id="player"></div>
    <div id="track_menu" {if $smarty.get.view eq "playlist"}style="visibility:hidden;"{/if}>
        
    <img src="/img/icons/unfav.png" style="display:none;" /><img src="/img/icons/fave.gif" style="display:none;" />
	
	<a href="javascript:Listen.reloadPlayer()" title="Reload song(s)">
	  <img src="img/icons/reload.png" alt="reload" />
	</a>
	{if $smarty.get.view eq "playlist"}
	  <img style="display:none;" src="img/icons/full_mode.png" alt="" />
	  <a href="javascript:Listen.toggleFullMode()" title="Switch to mini-mode" id="toggle_full_mode"><img src="img/icons/mini_mode.png" alt="toggle full/mini mode" /></a>
	{/if}
	{ $html->fav_icon($track_info->fav_user,$track_info->id) }
    
    {literal}
    <a id="fb_share" title="Share this track on your profile or send it to friends!" href="javascript:var d=document,f='http://www.facebook.com/share',l=d.location,e=encodeURIComponent,p='.php?src=bm&v=4&i=1192369770&u='+e(l.href)+'&t='+e(d.title);1;try{if(!/^(.*\.)?facebook\.[^.]*$/.test(l.host))throw(0);share_internal_bookmarklet(p)}catch(z){a=function(){if(!window.open(f+'r'+p,'sharer','toolbar=0,status=0,resizable=0,width=626,height=436'))l.href=f+p};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else{a()}}void(0)">
    {/literal}
    <img src="img/icons/share.png" alt="Share this track on FaceBook" /></a>   
    </div>
    { $html->close_table() }
	<script type="text/javascript">
	 
	window.addEvent('domready', function(){ldelim}
	 
	 {if $smarty.get.view eq "playlist"}
	   mt.onLoading($('playlist_loader'),'',1);
	   player.is_playlist = true;
	 {else}
	 player.setTrackInfo(
	   {ldelim}
	     'id': {$track_info->id},
	     'release': '{$track_info->release_title|escape:'quotes'}',
	     'artist': '{$track_info->artist|escape:'quotes'}',
         'title': '{$track_info->title|escape:'quotes'}'
       {rdelim}
       );
     
       player.track.current = {$track_info->id};	   
	 {/if}    
       Listen.displayPlayer(
       {ldelim}
       //id: player.track.info.id,
       src:encodeURIComponent('{if $smarty.get.view eq "playlist"}index.php?view=playlist&op=xml&uid={$smarty.get.uid}{else}{$track_info->url|escape:'quotes'}{/if}')
       {rdelim});
 
      {rdelim});	 
	</script>